<template>
  <div class="not-found">
    <div class="content">
      <h1>404</h1>
      <p>抱歉，您访问的页面不存在</p>
      <el-button type="primary" @click="goBack">返回上一页</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.back()
}
</script>

<style scoped lang="scss">
.not-found {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);

  .content {
    text-align: center;

    h1 {
      font-size: 8rem;
      color: var(--primary-color);
      margin: 0;
    }

    p {
      font-size: 1.5rem;
      color: var(--text-color-secondary);
      margin: 1rem 0 2rem;
    }
  }
}
</style> 